package com.xjj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xjj.entity.Advice;
import com.xjj.entity.PageBean;
import com.xjj.service.dto.AdviceDto;
import com.xjj.service.dto.AdviceReadDto;
import com.xjj.service.dto.StudentReadDto;

import java.util.List;

public interface AdviceService extends IService<Advice> {
    void add(Advice advice);

    void update(Advice advice);

    void delete(Integer id);

    List<Advice> selectByPage();

    List<Advice> selectAll();

    PageBean<Advice> selectByPages(PageBean pageBean,Advice advice);

    AdviceDto getAdviceById(Integer id);

    Integer getAdviceReadNum(Integer id);

    List<AdviceReadDto> getClassReadNum(Integer id);

    PageBean<StudentReadDto> getStuReadAdvice(PageBean pageBean, Advice advice);

    List<Advice> getParentAdvice();

    List<Advice> getClassAdvice(Integer pid);
}
